Skip to content

Conversation

@heydoyouknowme0
Copy link
Contributor

No description provided.

@heydoyouknowme0 heydoyouknowme0 changed the base branch from feat/navigation-bar-new to feature/faculty-profile-page April 11, 2025 07:12
@heydoyouknowme0 heydoyouknowme0 force-pushed the feature/faculty-profile-page branch 3 times, most recently from c099698 to c15b5e6 Compare April 14, 2025 20:18
Populated research and consultancy
#397 
This pull request adds a new "SC & ST Cell" section to the institute
website, including a dedicated page, navigation entry, and multilingual
support. It also improves the display of faculty contact information by
making email addresses clickable mailto links.

**SC & ST Cell Feature Addition**

* Added a new navigation entry for "SC & ST Cell" in the institute cells
menu within the header (`header.tsx`).
([app/[locale]/header.tsxR83-R88](diffhunk://#diff-05aeabaff5d1ec0d925bc6519f8dcf6cdc4f94efcf74117ecca3fbbd77eb7777R83-R88))
* Implemented a new page at `/institute/cells/scst` with a detailed
layout, including description, cell functions, liaison officer, and
important links, using translations and design components
(`scst/page.tsx`).
([app/[locale]/institute/cells/scst/page.tsxR1-R171](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cR1-R171))

**Internationalization and Data Structure Updates**

* Extended the translations and data structure in both English (`en.ts`)
and Hindi (`hi.ts`) to include all content and links for the SC & ST
Cell, such as descriptions, functions, officer info, and resources.
[[1]](diffhunk://#diff-8ee4c65eaaf735c33bd37bf76d2a87fb76d02b7928096cc26db6364694988ceeR609-R660)
[[2]](diffhunk://#diff-912c4f60653cc2c8d00fda0b21a7a65ab1c3e1c3f65007e1f211f40c951596b8R559-R610)
* Updated the `Translations` TypeScript interface to support the new
`scst` section and its nested fields (`translations.ts`).

**UI/UX Improvements**

* Updated the IPR cell's faculty email display to be a clickable mailto
link for better usability (`ipr/page.tsx`).
([app/[locale]/institute/cells/ipr/page.tsxL214-R219](diffhunk://#diff-8343f2570bf40278954d7880dcf9e37d0852c2722fab41d8faf4f435e9ae375bL214-R219))
#401 
This pull request makes a minor update to the layout of the SCST page
header. The main change is an adjustment to the styling of the header's
title container to improve its responsiveness and appearance.

- UI/Styling Improvements:
* The title container in the SCST page header (`page.tsx`) now has a
width of 90% and a maximum width (`max-w-5xl`), which helps the header
text scale better on different screen sizes. Additionally, the
`whitespace-nowrap` class was removed from the title to allow text
wrapping, and the `md:text-2xl` class was removed for consistency in
font sizing across breakpoints.
([app/[locale]/institute/cells/scst/page.tsxL33-R34](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL33-R34))
This pull request introduces the "areas of interest" field to faculty
profiles across the application, enhancing the display and management of
faculty expertise. It also includes improvements to the faculty profile
UI, adds department information, and makes minor corrections to health
center data and translations.

**Faculty Profile Enhancements:**

* Added support for the `areasOfInterest` field to faculty profiles,
including database queries, profile editing, and display on both faculty
list and individual faculty pages. This allows faculty to specify and
showcase their research areas and specializations.
([app/[locale]/@modals/(.)profile/edit/page.tsxR59](diffhunk://#diff-e73212c94224fb2541821a5e5cdf5880f9ecace5d712ec5cd8dff6e590ded805R59),
[app/[locale]/@modals/(.)profile/edit/page.tsxR84](diffhunk://#diff-e73212c94224fb2541821a5e5cdf5880f9ecace5d712ec5cd8dff6e590ded805R84),
[app/[locale]/faculty-and-staff/page.tsxR339-R343](diffhunk://#diff-73d9b8e5183a03609e638663514db195677d4e964b2ba2898d7ad4aa250d81d6R339-R343),
[app/[locale]/faculty-and-staff/utils.tsxR115](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dR115),
[app/[locale]/faculty-and-staff/utils.tsxL288-R317](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dL288-R317),
[app/[locale]/faculty-and-staff/page.tsxR407-R488](diffhunk://#diff-73d9b8e5183a03609e638663514db195677d4e964b2ba2898d7ad4aa250d81d6R407-R488))
* Updated the profile edit form to handle `areasOfInterest` as a
comma-separated list, with user guidance and validation.
([app/[locale]/@modals/(.)profile/edit/client-utils.tsxR19](diffhunk://#diff-7c2e4d7020e011706a88acc0afb6b98c2056a5adb5900f07977925b7e4ec1b03R19),
[app/[locale]/@modals/(.)profile/edit/client-utils.tsxR130-R166](diffhunk://#diff-7c2e4d7020e011706a88acc0afb6b98c2056a5adb5900f07977925b7e4ec1b03R130-R166))

**UI/UX Improvements:**

* Enhanced the faculty profile UI by displaying department names,
improving the edit button appearance, and refining the layout for
research areas and external profile links.
([app/[locale]/faculty-and-staff/utils.tsxR128-R132](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dR128-R132),
[app/[locale]/faculty-and-staff/utils.tsxL196-R202](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dL196-R202),
[app/[locale]/faculty-and-staff/utils.tsxL206-R227](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dL206-R227),
[app/[locale]/faculty-and-staff/page.tsxR365-R371](diffhunk://#diff-73d9b8e5183a03609e638663514db195677d4e964b2ba2898d7ad4aa250d81d6R365-R371),
[app/[locale]/faculty-and-staff/page.tsxL369-R396](diffhunk://#diff-73d9b8e5183a03609e638663514db195677d4e964b2ba2898d7ad4aa250d81d6L369-R396),
[app/[locale]/faculty-and-staff/utils.tsxL321-R346](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dL321-R346))
* Separated the display of intellectual contribution counts into its own
section for better clarity and organization.
([app/[locale]/faculty-and-staff/utils.tsxR355-R377](diffhunk://#diff-3e362b10e143377150343a08121115b31eeefe1081b2d3cdc3bb5551eaec6b4dR355-R377))

**Internationalization (i18n):**

* Added translation keys and values for "Areas of Interest" in both
English and Hindi, ensuring the new field is properly localized.
[[1]](diffhunk://#diff-8ee4c65eaaf735c33bd37bf76d2a87fb76d02b7928096cc26db6364694988ceeR333)
[[2]](diffhunk://#diff-912c4f60653cc2c8d00fda0b21a7a65ab1c3e1c3f65007e1f211f40c951596b8R342)
[[3]](diffhunk://#diff-f021560af3d5a0f14642131f53f3141ab31d57c62b232272a5a097673e427d49R201)

**Minor Fixes and Cleanups:**

* Fixed formatting and consistency in the health center section,
including hospital names and timings.
([app/[locale]/institute/sections/health-centre/page.tsxL36-R36](diffhunk://#diff-38944ec42877c43150f9f89c1ae5bbc6a073d69363647186f6abfa9696cdcecfL36-R36),
[app/[locale]/institute/sections/health-centre/page.tsxL305-R309](diffhunk://#diff-38944ec42877c43150f9f89c1ae5bbc6a073d69363647186f6abfa9696cdcecfL305-R309),
[app/[locale]/institute/sections/health-centre/page.tsxL318-R328](diffhunk://#diff-38944ec42877c43150f9f89c1ae5bbc6a073d69363647186f6abfa9696cdcecfL318-R328),
[app/[locale]/institute/sections/health-centre/page.tsxL490-R503](diffhunk://#diff-38944ec42877c43150f9f89c1ae5bbc6a073d69363647186f6abfa9696cdcecfL490-R503))
* Cleaned up translation files for better readability and consistency.

---------

Co-authored-by: Navneet Kaur <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: ArnavSharma005 <[email protected]>
Co-authored-by: heydoyouknowme0 <[email protected]>
This pull request updates the rendering logic for the courses table in
`app/[locale]/academics/curricula/page.tsx`. The main improvement is
ensuring that courses with no associated majors are still displayed in
the table, preventing them from being omitted.

Rendering improvements:

* Courses that have no entries in `coursesToMajors` are now rendered as
a single row with just their `code` and `title`, ensuring all courses
are shown in the table.
([app/[locale]/academics/curricula/page.tsxL93-R102](diffhunk://#diff-f28e90cdfc2124ecddf73b3a9d4522b6270d42112fa9b8a81c67656ed7722c86L93-R102))
* The mapping logic for rendering table rows has been refactored to
handle the case where `coursesToMajors` is empty, improving code
readability and correctness.
([app/[locale]/academics/curricula/page.tsxL116-R124](diffhunk://#diff-f28e90cdfc2124ecddf73b3a9d4522b6270d42112fa9b8a81c67656ed7722c86L116-R124))
Added single clubs page
This pull request makes a small UI improvement to the navigation buttons
in the `ImageHeader` component. The change enhances the user experience
by allowing button labels to expand smoothly when hovered, making longer
labels more readable.

- UI enhancement:
* Updated the navigation button labels in `image-header.tsx` to truncate
long labels by default and smoothly expand their width on hover for
better readability.
Copy link
Contributor

@aryansri-19 aryansri-19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.